using Vin.Extension.Redis.Cache;
using Vin.Tool.AspNetCore.Service;

namespace Vin.Extension.Redis.Service;

public class RedisService : VinBaseService
{
    private RedisCache _redisCache;

    public RedisService()
    {
        _redisCache = RedisCacheManager.GetRedisCache();
    }

    /// <summary>
    /// 改变数据库
    /// </summary>
    public bool ChangeDatabase(int database)
    {
        _redisCache = RedisCacheManager.GetRedisCache(database);
        return true;
    }
    
    
}